package com.weitu.train.plan.service;

import com.weitu.train.plan.entity.Train;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TrainService {

    Train selectById(String id);

    int deleteById(String id);

    boolean updateByIdSelective(Map record);

    boolean insertSelective(Map record);

    boolean insertData( Map<String, Object> map);

    int insertCertificateTypeIds(List<Map> maps);
    int deleteCertificateTypeIds(@Param("id") String id);

    List<Train> selectAllPlans(Map map);
    int selectAllPlansCount(Map map);
    List<Train> selectListPlans(Map map);
    int selectAllListPlansCount(Map map);

    List<Map<String,Object>> selectAnalysis(Map<String,Object> map);
    List<Map<String,Object>> selectAnalysisPerson(Map<String,Object> map);
}